package com.idas.comp.enums;

public enum ConditionStatus {
	FALSE, TRUE, NOT_APPLICABLE;

	public static ConditionStatus getValue(int status) {
		switch (status) {
		case 1:
			return TRUE;
		case 2:
			return NOT_APPLICABLE;
		}
		return FALSE;
	}
	
	public static int getValue(ConditionStatus status) {
		switch(status){
		case TRUE:
			return 1;
		case NOT_APPLICABLE:
			return 2;
		}
		return 0;
	}
	
	public static int getValue(String value) {
		return getValue(ConditionStatus.valueOf(value.toUpperCase()));
	}

}
